from typing import TypedDict


class CharMeta(TypedDict):
    user_name: str
    user_info: str
    bot_name:  str
    bot_info:  str

def role_reverse(meta: CharMeta) -> CharMeta:
    user_name = meta['user_name']
    user_info = meta['user_info']
    meta['user_name'] = meta['bot_name']
    meta['user_info'] = meta['bot_info']
    meta['bot_name'] = user_name
    meta['bot_info'] = user_info
    return meta.copy()
